//
//  FPAddNewBankCardHeader.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/5/6.
//

#import "FPAddNewBankCardHeader.h"

@implementation FPAddNewBankCardHeader

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.backgroundColor = MAIN_VIEW_BACKGROUND_COLOR;
    
    self.headBackView.clipsToBounds = YES;
    self.headBackView.layer.cornerRadius = 4.f;
    
    self.cardBackView.clipsToBounds = YES;
    self.cardBackView.layer.cornerRadius = 4.f;
    self.cardBackView.backgroundColor = UIColor.whiteColor;
    self.cardBackView.layer.borderWidth = 1.f;
    self.cardBackView.layer.borderColor = [UIColor hexColor:@"#CCCCCC"].CGColor;
    
    self.lineView2.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    self.lineView3.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    self.lineView6.backgroundColor = [[UIColor hexColor:@"#DEDEDE"] colorWithAlphaComponent:.5f];
    
    self.tipLab1.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab2.textColor = [UIColor hexColor:@"#000000"];
    self.tipLab3.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab4.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab5.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab6.textColor = [UIColor hexColor:@"#3A3A3A"];
    self.tipLab7.textColor = [UIColor hexColor:@"#6A6A6A"];
    
    NSString *text1 = @"* 所属银行";
    NSMutableAttributedString *attStr1 = [[NSMutableAttributedString alloc] initWithString:text1];
    NSRange range1 = [text1 rangeOfString:@"*"];
    [NSString stringToAttribute:attStr1 color:[UIColor hexColor:@"#F12D2D"] range:range1];
    self.tipLab3.attributedText = attStr1;
    
    NSString *text2 = @"* 手机号码";
    NSMutableAttributedString *attStr2 = [[NSMutableAttributedString alloc] initWithString:text2];
    NSRange range2 = [text2 rangeOfString:@"*"];
    [NSString stringToAttribute:attStr2 color:[UIColor hexColor:@"#F12D2D"] range:range2];
    self.tipLab4.attributedText = attStr2;
    
    NSString *text3 = @"* 验证码";
    NSMutableAttributedString *attStr3 = [[NSMutableAttributedString alloc] initWithString:text3];
    NSRange range3 = [text3 rangeOfString:@"*"];
    [NSString stringToAttribute:attStr3 color:[UIColor hexColor:@"#F12D2D"] range:range3];
    self.tipLab5.attributedText = attStr3;
    
    self.backView.clipsToBounds = YES;
    self.backView.layer.cornerRadius = 8.f;
}



@end
